<template>
  <a-modal
    title="新增商户档案"
    :width="900"
    :visible="visible"
    :confirmLoading="confirmLoading"
    @ok="handleSubmit"
    @cancel="handleCancel"
  >
    <a-spin :spinning="confirmLoading">
      <a-form :form="form">
        <a-form-item
          label="商户名称"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入商户名称" v-decorator="['compname', {rules: [{required: true, message: '请输入商户名称！'}]}]" />
        </a-form-item>
        <a-form-item
          label="所在城市代码"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入所在城市代码" v-decorator="['areaId', {rules: [{required: true, message: '请输入所在城市代码！'}]}]" />
        </a-form-item>
        <a-form-item
          label="所在城市名称"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入所在城市名称" v-decorator="['areaName', {rules: [{required: true, message: '请输入所在城市名称！'}]}]" />
        </a-form-item>
        <a-form-item
          label="TMS汽配商ID"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入TMS汽配商ID" v-decorator="['tmsCustomerId', {rules: [{required: true, message: '请输入TMS汽配商ID！'}]}]" />
        </a-form-item>
        <a-form-item
          label="商户分类--总部定义"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入商户分类--总部定义" v-decorator="['comptype', {rules: [{required: true, message: '请输入商户分类--总部定义！'}]}]" />
        </a-form-item>
        <a-form-item
          label="地址"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入地址" v-decorator="['address', {rules: [{required: true, message: '请输入地址！'}]}]" />
        </a-form-item>
        <a-form-item
          label="注册手机号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入注册手机号" v-decorator="['mobile', {rules: [{required: true, message: '请输入注册手机号！'}]}]" />
        </a-form-item>
        <a-form-item
          label="联系人"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入联系人" v-decorator="['relation', {rules: [{required: true, message: '请输入联系人！'}]}]" />
        </a-form-item>
        <a-form-item
          label="注册日期"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-date-picker style="width: 100%" placeholder="请选择注册日期" v-decorator="['createdate',{rules: [{ required: true, message: '请选择注册日期！' }]}]" @change="createdateOnChange"/>
        </a-form-item>
        <a-form-item
          label="超级用户密码"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入超级用户密码" v-decorator="['pwd', {rules: [{required: true, message: '请输入超级用户密码！'}]}]" />
        </a-form-item>
        <a-form-item
          label="法人"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入法人" v-decorator="['compzd1', {rules: [{required: true, message: '请输入法人！'}]}]" />
        </a-form-item>
        <a-form-item
          label="纳税识别号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入纳税识别号" v-decorator="['compzd2', {rules: [{required: true, message: '请输入纳税识别号！'}]}]" />
        </a-form-item>
        <a-form-item
          label="注册地址"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入注册地址" v-decorator="['compzd3', {rules: [{required: true, message: '请输入注册地址！'}]}]" />
        </a-form-item>
        <a-form-item
          label="开户行及账号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入开户行及账号" v-decorator="['compzd4', {rules: [{required: true, message: '请输入开户行及账号！'}]}]" />
        </a-form-item>
        <a-form-item
          label="公司网站"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入公司网站" v-decorator="['compzd5', {rules: [{required: true, message: '请输入公司网站！'}]}]" />
        </a-form-item>
        <a-form-item
          label="经营产品"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入经营产品" v-decorator="['compzd6', {rules: [{required: true, message: '请输入经营产品！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['compzd7', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['compzd8', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['compzd9', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label="联系人1及电话"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入联系人1及电话" v-decorator="['rela1', {rules: [{required: true, message: '请输入联系人1及电话！'}]}]" />
        </a-form-item>
        <a-form-item
          label="联系人2及电话"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入联系人2及电话" v-decorator="['rela2', {rules: [{required: true, message: '请输入联系人2及电话！'}]}]" />
        </a-form-item>
        <a-form-item
          label="联系人3及电话"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入联系人3及电话" v-decorator="['rela3', {rules: [{required: true, message: '请输入联系人3及电话！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['rela4', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['rela5', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['rela6', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['rela7', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['rela8', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['rela9', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['pym', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['wbm', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label="营业执照编号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入营业执照编号" v-decorator="['businesslicenseno', {rules: [{required: true, message: '请输入营业执照编号！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['companystaffnum', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['registeredcapital', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['companytel', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label="汽配商Id，对应汽配商入驻表 AutoPartsSuppliers"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入汽配商Id，对应汽配商入驻表 AutoPartsSuppliers" v-decorator="['apsId', {rules: [{required: true, message: '请输入汽配商Id，对应汽配商入驻表 AutoPartsSuppliers！'}]}]" />
        </a-form-item>
        <a-form-item
          label="优汽在线店铺id"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入优汽在线店铺id" v-decorator="['storeId', {rules: [{required: true, message: '请输入优汽在线店铺id！'}]}]" />
        </a-form-item>
        <a-form-item
          label="优汽在线管理员id"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入优汽在线管理员id" v-decorator="['memberId', {rules: [{required: true, message: '请输入优汽在线管理员id！'}]}]" />
        </a-form-item>
        <a-form-item
          label="优汽在线店铺名称"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入优汽在线店铺名称" v-decorator="['storeName', {rules: [{required: true, message: '请输入优汽在线店铺名称！'}]}]" />
        </a-form-item>
        <a-form-item
          label="业务员"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入业务员" v-decorator="['employeeId', {rules: [{required: true, message: '请输入业务员！'}]}]" />
        </a-form-item>
        <a-form-item
          label="所在市"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入所在市" v-decorator="['cityId', {rules: [{required: true, message: '请输入所在市！'}]}]" />
        </a-form-item>
        <a-form-item
          label="所在省"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入所在省" v-decorator="['provinceId', {rules: [{required: true, message: '请输入所在省！'}]}]" />
        </a-form-item>
        <a-form-item
          label="二维码内容"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入二维码内容" v-decorator="['qrCodeContent', {rules: [{required: true, message: '请输入二维码内容！'}]}]" />
        </a-form-item>
        <a-form-item
          label="二维码附件id"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入二维码附件id" v-decorator="['qrCodeAttchId', {rules: [{required: true, message: '请输入二维码附件id！'}]}]" />
        </a-form-item>
        <a-form-item
          label="车型"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入车型" v-decorator="['motorcycle', {rules: [{required: true, message: '请输入车型！'}]}]" />
        </a-form-item>
        <a-form-item
          label="品牌"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入品牌" v-decorator="['brand', {rules: [{required: true, message: '请输入品牌！'}]}]" />
        </a-form-item>
        <a-form-item
          label="所属分类{专营、专卖、旗舰"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入所属分类{专营、专卖、旗舰" v-decorator="['storeType', {rules: [{required: true, message: '请输入所属分类{专营、专卖、旗舰！'}]}]" />
        </a-form-item>
        <a-form-item
          label="有效期 - 截至日期"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-date-picker style="width: 100%" placeholder="请选择有效期 - 截至日期" v-decorator="['storeEndDate',{rules: [{ required: true, message: '请选择有效期 - 截至日期！' }]}]" @change="storeEndDateOnChange"/>
        </a-form-item>
        <a-form-item
          label="是否开启店铺保障服务"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否开启店铺保障服务" v-decorator="['storeBzfw', {rules: [{required: true, message: '请输入是否开启店铺保障服务！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否有保证金"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否有保证金" v-decorator="['storeBzj', {rules: [{required: true, message: '请输入是否有保证金！'}]}]" />
        </a-form-item>
        <a-form-item
          label="保证金金额"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入保证金金额" v-decorator="['sotreBzjMoney', {rules: [{required: true, message: '请输入保证金金额！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否正品保障"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否正品保障" v-decorator="['storeZhengpin', {rules: [{required: true, message: '请输入是否正品保障！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否实体店铺"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否实体店铺" v-decorator="['storeShiti', {rules: [{required: true, message: '请输入是否实体店铺！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否七天退换"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否七天退换" v-decorator="['storeQitian', {rules: [{required: true, message: '请输入是否七天退换！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否退换承诺"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否退换承诺" v-decorator="['storeTuihuan', {rules: [{required: true, message: '请输入是否退换承诺！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否试用中心"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否试用中心" v-decorator="['storeShiyong', {rules: [{required: true, message: '请输入是否试用中心！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否2小时发货"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否2小时发货" v-decorator="['storeErxiaoshi', {rules: [{required: true, message: '请输入是否2小时发货！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否货到付款"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否货到付款" v-decorator="['storeHuodao', {rules: [{required: true, message: '请输入是否货到付款！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否消费者保障"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否消费者保障" v-decorator="['storeXiaofeibaozhang', {rules: [{required: true, message: '请输入是否消费者保障！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否优享贷"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否优享贷" v-decorator="['sotreYouxiangdai', {rules: [{required: true, message: '请输入是否优享贷！'}]}]" />
        </a-form-item>
        <a-form-item
          label="公司名称"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入公司名称" v-decorator="['companyName', {rules: [{required: true, message: '请输入公司名称！'}]}]" />
        </a-form-item>
        <a-form-item
          label="公司所在地"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入公司所在地" v-decorator="['companyProvinceId', {rules: [{required: true, message: '请输入公司所在地！'}]}]" />
        </a-form-item>
        <a-form-item
          label="公司详细地址"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入公司详细地址" v-decorator="['companyAddress', {rules: [{required: true, message: '请输入公司详细地址！'}]}]" />
        </a-form-item>
        <a-form-item
          label="公司电话"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入公司电话" v-decorator="['companyPhone', {rules: [{required: true, message: '请输入公司电话！'}]}]" />
        </a-form-item>
        <a-form-item
          label="员工总数"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入员工总数" v-decorator="['companyEmployeeCount', {rules: [{required: true, message: '请输入员工总数！'}]}]" />
        </a-form-item>
        <a-form-item
          label="注册资金"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入注册资金" v-decorator="['companyRegisteredCapital', {rules: [{required: true, message: '请输入注册资金！'}]}]" />
        </a-form-item>
        <a-form-item
          label="联系人姓名"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入联系人姓名" v-decorator="['companyContactsName', {rules: [{required: true, message: '请输入联系人姓名！'}]}]" />
        </a-form-item>
        <a-form-item
          label="联系人电话"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入联系人电话" v-decorator="['companyContactsTel', {rules: [{required: true, message: '请输入联系人电话！'}]}]" />
        </a-form-item>
        <a-form-item
          label="电子邮箱"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入电子邮箱" v-decorator="['companyContactsEamil', {rules: [{required: true, message: '请输入电子邮箱！'}]}]" />
        </a-form-item>
        <a-form-item
          label="营业执照所在地"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入营业执照所在地" v-decorator="['businessLicenseAddress', {rules: [{required: true, message: '请输入营业执照所在地！'}]}]" />
        </a-form-item>
        <a-form-item
          label="营业执照开始时间"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-date-picker style="width: 100%" placeholder="请选择营业执照开始时间" v-decorator="['businessLicenseStartDate',{rules: [{ required: true, message: '请选择营业执照开始时间！' }]}]" @change="businessLicenseStartDateOnChange"/>
        </a-form-item>
        <a-form-item
          label="营业执照结束时间"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-date-picker style="width: 100%" placeholder="请选择营业执照结束时间" v-decorator="['businessLicenseEndDate',{rules: [{ required: true, message: '请选择营业执照结束时间！' }]}]" @change="businessLicenseEndDateOnChange"/>
        </a-form-item>
        <a-form-item
          label="法定经营范围"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入法定经营范围" v-decorator="['businessLicenseRange', {rules: [{required: true, message: '请输入法定经营范围！'}]}]" />
        </a-form-item>
        <a-form-item
          label="营业执照电子版"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入营业执照电子版" v-decorator="['businessLicensePhoto', {rules: [{required: true, message: '请输入营业执照电子版！'}]}]" />
        </a-form-item>
        <a-form-item
          label="组织机构代码"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入组织机构代码" v-decorator="['organizationCode', {rules: [{required: true, message: '请输入组织机构代码！'}]}]" />
        </a-form-item>
        <a-form-item
          label="组织结构代码证电子版"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入组织结构代码证电子版" v-decorator="['organizationCodePhoto', {rules: [{required: true, message: '请输入组织结构代码证电子版！'}]}]" />
        </a-form-item>
        <a-form-item
          label="一般纳税人证明"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入一般纳税人证明" v-decorator="['generalTaxpayer', {rules: [{required: true, message: '请输入一般纳税人证明！'}]}]" />
        </a-form-item>
        <a-form-item
          label="银行开户名"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入银行开户名" v-decorator="['bankAccountName', {rules: [{required: true, message: '请输入银行开户名！'}]}]" />
        </a-form-item>
        <a-form-item
          label="公司银行账号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入公司银行账号" v-decorator="['bankAccountNumber', {rules: [{required: true, message: '请输入公司银行账号！'}]}]" />
        </a-form-item>
        <a-form-item
          label="开户银行支行名称"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入开户银行支行名称" v-decorator="['bankName', {rules: [{required: true, message: '请输入开户银行支行名称！'}]}]" />
        </a-form-item>
        <a-form-item
          label="银行账户开户行"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入银行账户开户行" v-decorator="['bankCodeName', {rules: [{required: true, message: '请输入银行账户开户行！'}]}]" />
        </a-form-item>
        <a-form-item
          label="支行联行号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入支行联行号" v-decorator="['bankCode', {rules: [{required: true, message: '请输入支行联行号！'}]}]" />
        </a-form-item>
        <a-form-item
          label="开户银行所在地"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入开户银行所在地" v-decorator="['bankAddress', {rules: [{required: true, message: '请输入开户银行所在地！'}]}]" />
        </a-form-item>
        <a-form-item
          label="开户银行许可证电子版"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入开户银行许可证电子版" v-decorator="['bankLicenceElectronic', {rules: [{required: true, message: '请输入开户银行许可证电子版！'}]}]" />
        </a-form-item>
        <a-form-item
          label="银行开户名 - 结算"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入银行开户名 - 结算" v-decorator="['settlementBankAccountName', {rules: [{required: true, message: '请输入银行开户名 - 结算！'}]}]" />
        </a-form-item>
        <a-form-item
          label="公司银行账号 - 结算"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入公司银行账号 - 结算" v-decorator="['settlementBankAccountNumber', {rules: [{required: true, message: '请输入公司银行账号 - 结算！'}]}]" />
        </a-form-item>
        <a-form-item
          label="开户银行支行名称 - 结算"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入开户银行支行名称 - 结算" v-decorator="['settlementBankName', {rules: [{required: true, message: '请输入开户银行支行名称 - 结算！'}]}]" />
        </a-form-item>
        <a-form-item
          label="支行联行号 - 结算"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入支行联行号 - 结算" v-decorator="['settlementBankCode', {rules: [{required: true, message: '请输入支行联行号 - 结算！'}]}]" />
        </a-form-item>
        <a-form-item
          label="开户银行所在地 - 结算"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入开户银行所在地 - 结算" v-decorator="['settlementBankAddress', {rules: [{required: true, message: '请输入开户银行所在地 - 结算！'}]}]" />
        </a-form-item>
        <a-form-item
          label="税务登记证号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入税务登记证号" v-decorator="['taxRegistrationCertificate', {rules: [{required: true, message: '请输入税务登记证号！'}]}]" />
        </a-form-item>
        <a-form-item
          label="纳税人识别号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入纳税人识别号" v-decorator="['taxpayerId', {rules: [{required: true, message: '请输入纳税人识别号！'}]}]" />
        </a-form-item>
        <a-form-item
          label="税务登记号电子版"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入税务登记号电子版" v-decorator="['taxRegistrationCertificatePhoto', {rules: [{required: true, message: '请输入税务登记号电子版！'}]}]" />
        </a-form-item>
        <a-form-item
          label="创建人 userid"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入创建人 userid" v-decorator="['createPerson', {rules: [{required: true, message: '请输入创建人 userid！'}]}]" />
        </a-form-item>
        <a-form-item
          label="更新人 userid"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入更新人 userid" v-decorator="['updatePerson', {rules: [{required: true, message: '请输入更新人 userid！'}]}]" />
        </a-form-item>
        <a-form-item
          label="公司状态 1.注册 2.开通商铺"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入公司状态 1.注册 2.开通商铺" v-decorator="['companyStatus', {rules: [{required: true, message: '请输入公司状态 1.注册 2.开通商铺！'}]}]" />
        </a-form-item>
        <a-form-item
          label="erp系统中的公司id"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入erp系统中的公司id" v-decorator="['erpCompanyId', {rules: [{required: true, message: '请输入erp系统中的公司id！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否删除"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否删除" v-decorator="['deleted', {rules: [{required: true, message: '请输入是否删除！'}]}]" />
        </a-form-item>
        <a-form-item
          label="主营商品"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入主营商品" v-decorator="['mainGoods', {rules: [{required: true, message: '请输入主营商品！'}]}]" />
        </a-form-item>
        <a-form-item
          label="店铺门头照"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入店铺门头照" v-decorator="['companyTitlePhoto', {rules: [{required: true, message: '请输入店铺门头照！'}]}]" />
        </a-form-item>
        <a-form-item
          label="图片截取的位置"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入图片截取的位置" v-decorator="['gg9', {rules: [{required: true, message: '请输入图片截取的位置！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否来自店管家 1为是，0为否,2标识为已经完善信息"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否来自店管家 1为是，0为否,2标识为已经完善信息" v-decorator="['fromDgj', {rules: [{required: true, message: '请输入是否来自店管家 1为是，0为否,2标识为已经完善信息！'}]}]" />
        </a-form-item>
        <a-form-item
          label="店管家邀请标号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入店管家邀请标号" v-decorator="['inviteIdDgj', {rules: [{required: true, message: '请输入店管家邀请标号！'}]}]" />
        </a-form-item>
        <a-form-item
          label="经纬度坐标"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入经纬度坐标" v-decorator="['position', {rules: [{required: true, message: '请输入经纬度坐标！'}]}]" />
        </a-form-item>
        <a-form-item
          label="所在地区"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入所在地区" v-decorator="['areaid', {rules: [{required: true, message: '请输入所在地区！'}]}]" />
        </a-form-item>
        <a-form-item
          label="速达默认的标准每单费用"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
        </a-form-item>
        <a-form-item
          label="工作时间"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入工作时间" v-decorator="['workingtime', {rules: [{required: true, message: '请输入工作时间！'}]}]" />
        </a-form-item>
        <a-form-item
          label="门头照"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入门头照" v-decorator="['storeLogo', {rules: [{required: true, message: '请输入门头照！'}]}]" />
        </a-form-item>
        <a-form-item
          label="优汽在线店铺名称"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入优汽在线店铺名称" v-decorator="['storename', {rules: [{required: true, message: '请输入优汽在线店铺名称！'}]}]" />
        </a-form-item>
        <a-form-item
          label="法人身份证号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入法人身份证号" v-decorator="['compzd1Cardno', {rules: [{required: true, message: '请输入法人身份证号！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['linkData', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label="站点id"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入站点id" v-decorator="['stationId', {rules: [{required: true, message: '请输入站点id！'}]}]" />
        </a-form-item>
        <a-form-item
          label="所属平台id"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入所属平台id" v-decorator="['platformId', {rules: [{required: true, message: '请输入所属平台id！'}]}]" />
        </a-form-item>
        <a-form-item
          label="商家类型，汽配商或厂家"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入商家类型，汽配商或厂家" v-decorator="['companyType', {rules: [{required: true, message: '请输入商家类型，汽配商或厂家！'}]}]" />
        </a-form-item>
        <a-form-item
          label="配送提供商 1：商家自行配送 2：优汽速达"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入配送提供商 1：商家自行配送 2：优汽速达" v-decorator="['shippingProvider', {rules: [{required: true, message: '请输入配送提供商 1：商家自行配送 2：优汽速达！'}]}]" />
        </a-form-item>
        <a-form-item
          label="配送类型：1：次日达 2：隔日达"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入配送类型：1：次日达 2：隔日达" v-decorator="['shippingType', {rules: [{required: true, message: '请输入配送类型：1：次日达 2：隔日达！'}]}]" />
        </a-form-item>
        <a-form-item
          label="配送时效 1(1:00)、2 （2：00）依次类推"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
        </a-form-item>
        <a-form-item
          label="是否开通限时达服务 0:否 1:是"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否开通限时达服务 0:否 1:是" v-decorator="['shippingXianshida', {rules: [{required: true, message: '请输入是否开通限时达服务 0:否 1:是！'}]}]" />
        </a-form-item>
        <a-form-item
          label="限时达时效 1,2,4 单位：小时"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
        </a-form-item>
        <a-form-item
          label="运费承担方：1:商家承担 2:买家承担"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入运费承担方：1:商家承担 2:买家承担" v-decorator="['xianshidaFeePerson', {rules: [{required: true, message: '请输入运费承担方：1:商家承担 2:买家承担！'}]}]" />
        </a-form-item>
        <a-form-item
          label="配送时效 1(1:00)、2 （2：00）依次类推"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
        </a-form-item>
        <a-form-item
          label="配送描述1"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入配送描述1" v-decorator="['dispatchDescription1', {rules: [{required: true, message: '请输入配送描述1！'}]}]" />
        </a-form-item>
        <a-form-item
          label="配送描述2"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入配送描述2" v-decorator="['dispatchDescription2', {rules: [{required: true, message: '请输入配送描述2！'}]}]" />
        </a-form-item>
        <a-form-item
          label="店铺代理品牌图片URL"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入店铺代理品牌图片URL" v-decorator="['bandpic', {rules: [{required: true, message: '请输入店铺代理品牌图片URL！'}]}]" />
        </a-form-item>
        <a-form-item
          label="商品标签的打印尺寸"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入商品标签的打印尺寸" v-decorator="['goodsTempSize', {rules: [{required: true, message: '请输入商品标签的打印尺寸！'}]}]" />
        </a-form-item>
        <a-form-item
          label="服务品牌"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
        </a-form-item>
        <a-form-item
          label="轮胎品牌集合"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
        </a-form-item>
        <a-form-item
          label="易损件服务地区"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
        </a-form-item>
        <a-form-item
          label="服务地区"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['img', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label="税率"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入税率" v-decorator="['taxrate', {rules: [{required: true, message: '请输入税率！'}]}]" />
        </a-form-item>
        <a-form-item
          label="横幅照"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入横幅照" v-decorator="['storeBanner', {rules: [{required: true, message: '请输入横幅照！'}]}]" />
        </a-form-item>
        <a-form-item
          label="ufc账号id"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入ufc账号id" v-decorator="['ufcAccountId', {rules: [{required: true, message: '请输入ufc账号id！'}]}]" />
        </a-form-item>
        <a-form-item
          label="ufc账号密码"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入ufc账号密码" v-decorator="['ufcAccountPassword', {rules: [{required: true, message: '请输入ufc账号密码！'}]}]" />
        </a-form-item>
        <a-form-item
          label="微信用户名"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入微信用户名" v-decorator="['wxtUser', {rules: [{required: true, message: '请输入微信用户名！'}]}]" />
        </a-form-item>
        <a-form-item
          label="微信openid"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入微信openid" v-decorator="['wxtOpenId', {rules: [{required: true, message: '请输入微信openid！'}]}]" />
        </a-form-item>
        <a-form-item
          label="所属总公司id"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入所属总公司id" v-decorator="['companyHeadId', {rules: [{required: true, message: '请输入所属总公司id！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['companyHeadName', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['companyHeadRelation', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否发送签收短信    发送    不发送"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否发送签收短信    发送    不发送" v-decorator="['signSms', {rules: [{required: true, message: '请输入是否发送签收短信    发送    不发送！'}]}]" />
        </a-form-item>
        <a-form-item
          label="QQ号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入QQ号" v-decorator="['qq', {rules: [{required: true, message: '请输入QQ号！'}]}]" />
        </a-form-item>
        <a-form-item
          label="ERP类型字段 1.长远"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入ERP类型字段 1.长远" v-decorator="['erpType', {rules: [{required: true, message: '请输入ERP类型字段 1.长远！'}]}]" />
        </a-form-item>
        <a-form-item
          label="法人姓名（银行信息）"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入法人姓名（银行信息）" v-decorator="['bankLegalName', {rules: [{required: true, message: '请输入法人姓名（银行信息）！'}]}]" />
        </a-form-item>
        <a-form-item
          label="法人身份证号（银行信息）"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入法人身份证号（银行信息）" v-decorator="['bankLegalId', {rules: [{required: true, message: '请输入法人身份证号（银行信息）！'}]}]" />
        </a-form-item>
        <a-form-item
          label="备注信息"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入备注信息" v-decorator="['back', {rules: [{required: true, message: '请输入备注信息！'}]}]" />
        </a-form-item>
        <a-form-item
          label="会员状态 0 启用 ，1 停用"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入会员状态 0 启用 ，1 停用" v-decorator="['memberStatus', {rules: [{required: true, message: '请输入会员状态 0 启用 ，1 停用！'}]}]" />
        </a-form-item>
        <a-form-item
          label="会员开始时间"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入会员开始时间" v-decorator="['memberStartTime', {rules: [{required: true, message: '请输入会员开始时间！'}]}]" />
        </a-form-item>
        <a-form-item
          label="会员结束时间"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入会员结束时间" v-decorator="['memberEndTime', {rules: [{required: true, message: '请输入会员结束时间！'}]}]" />
        </a-form-item>
        <a-form-item
          label="法人手机号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入法人手机号" v-decorator="['legalPersonMobile', {rules: [{required: true, message: '请输入法人手机号！'}]}]" />
        </a-form-item>
        <a-form-item
          label="统一社会信用代码"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入统一社会信用代码" v-decorator="['unifiedSocialCreditCode', {rules: [{required: true, message: '请输入统一社会信用代码！'}]}]" />
        </a-form-item>
        <a-form-item
          label="管理员账号"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入管理员账号" v-decorator="['userAccount', {rules: [{required: true, message: '请输入管理员账号！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['pwd2', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label="奔宝联平台：经营模式：1.批发；2.零售"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入奔宝联平台：经营模式：1.批发；2.零售" v-decorator="['businessModel', {rules: [{required: true, message: '请输入奔宝联平台：经营模式：1.批发；2.零售！'}]}]" />
        </a-form-item>
        <a-form-item
          label="优先级"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入优先级" v-decorator="['priority', {rules: [{required: true, message: '请输入优先级！'}]}]" />
        </a-form-item>
        <a-form-item
          label="公司简称"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入公司简称" v-decorator="['shortName', {rules: [{required: true, message: '请输入公司简称！'}]}]" />
        </a-form-item>
        <a-form-item
          label="供应商名称首字母拼音"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入供应商名称首字母拼音" v-decorator="['firstLetter', {rules: [{required: true, message: '请输入供应商名称首字母拼音！'}]}]" />
        </a-form-item>
        <a-form-item
          label="供应商名称拼音全拼"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入供应商名称拼音全拼" v-decorator="['fullLetter', {rules: [{required: true, message: '请输入供应商名称拼音全拼！'}]}]" />
        </a-form-item>
        <a-form-item
          label="平台ids"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入平台ids" v-decorator="['platformIds', {rules: [{required: true, message: '请输入平台ids！'}]}]" />
        </a-form-item>
        <a-form-item
          label="平台ids-检索用"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入平台ids-检索用" v-decorator="['platformIdsS', {rules: [{required: true, message: '请输入平台ids-检索用！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['commissionSetting', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['settlementState', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label="打印模板配置"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入打印模板配置" v-decorator="['printConfig', {rules: [{required: true, message: '请输入打印模板配置！'}]}]" />
        </a-form-item>
        <a-form-item
          label="店铺客户、订单是否同步erp 0：不同步 1:  同步"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入店铺客户、订单是否同步erp 0：不同步 1:  同步" v-decorator="['isSynErp', {rules: [{required: true, message: '请输入店铺客户、订单是否同步erp 0：不同步 1:  同步！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['issynerp', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['thirdFreightPayer', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label="公司im开通状态 开通  禁用"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入公司im开通状态 开通  禁用" v-decorator="['imStatus', {rules: [{required: true, message: '请输入公司im开通状态 开通  禁用！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['imstatus', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label=""
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入" v-decorator="['erpCustomerCode', {rules: [{required: true, message: '请输入！'}]}]" />
        </a-form-item>
        <a-form-item
          label="ERP供应商编码"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入ERP供应商编码" v-decorator="['erpCompanyCode', {rules: [{required: true, message: '请输入ERP供应商编码！'}]}]" />
        </a-form-item>
        <a-form-item
          label="审核状态，0，未审核，10，审核中，20，已审核  40 计划停用"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入审核状态，0，未审核，10，审核中，20，已审核  40 计划停用" v-decorator="['state', {rules: [{required: true, message: '请输入审核状态，0，未审核，10，审核中，20，已审核  40 计划停用！'}]}]" />
        </a-form-item>
        <a-form-item
          label="一般纳税人资格证url"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入一般纳税人资格证url" v-decorator="['qualificationUrl', {rules: [{required: true, message: '请输入一般纳税人资格证url！'}]}]" />
        </a-form-item>
        <a-form-item
          label="审核时间"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-date-picker style="width: 100%" placeholder="请选择审核时间" v-decorator="['verifyTime',{rules: [{ required: true, message: '请选择审核时间！' }]}]" @change="verifyTimeOnChange"/>
        </a-form-item>
        <a-form-item
          label="产品经营授权书(多张"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入产品经营授权书(多张" v-decorator="['productLicensing', {rules: [{required: true, message: '请输入产品经营授权书(多张！'}]}]" />
        </a-form-item>
        <a-form-item
          label="经营类目"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入经营类目" v-decorator="['businessCategory', {rules: [{required: true, message: '请输入经营类目！'}]}]" />
        </a-form-item>
        <a-form-item
          label="身份证正面"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入身份证正面" v-decorator="['frontCardUrl', {rules: [{required: true, message: '请输入身份证正面！'}]}]" />
        </a-form-item>
        <a-form-item
          label="身份证反面"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入身份证反面" v-decorator="['backCardUrl', {rules: [{required: true, message: '请输入身份证反面！'}]}]" />
        </a-form-item>
        <a-form-item
          label="其他经营品牌"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入其他经营品牌" v-decorator="['otherBrand', {rules: [{required: true, message: '请输入其他经营品牌！'}]}]" />
        </a-form-item>
        <a-form-item
          label="供应商邮箱"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入供应商邮箱" v-decorator="['compEmail', {rules: [{required: true, message: '请输入供应商邮箱！'}]}]" />
        </a-form-item>
        <a-form-item
          label="审批意见"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入审批意见" v-decorator="['applyOpinion', {rules: [{required: true, message: '请输入审批意见！'}]}]" />
        </a-form-item>
        <a-form-item
          label="供应商合同下载"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入供应商合同下载" v-decorator="['compContract', {rules: [{required: true, message: '请输入供应商合同下载！'}]}]" />
        </a-form-item>
        <a-form-item
          label="供应商分类"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入供应商分类" v-decorator="['compType', {rules: [{required: true, message: '请输入供应商分类！'}]}]" />
        </a-form-item>
        <a-form-item
          label="法人授权协议"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入法人授权协议" v-decorator="['compAgreement', {rules: [{required: true, message: '请输入法人授权协议！'}]}]" />
        </a-form-item>
        <a-form-item
          label="传真"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入传真" v-decorator="['fax', {rules: [{required: true, message: '请输入传真！'}]}]" />
        </a-form-item>
        <a-form-item
          label="所属大区id"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入所属大区id" v-decorator="['regionId', {rules: [{required: true, message: '请输入所属大区id！'}]}]" />
        </a-form-item>
        <a-form-item
          label="是否接受易货询报价（1，普通询报价，2只收易货的，3全部接受，4都不接受）"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入是否接受易货询报价（1，普通询报价，2只收易货的，3全部接受，4都不接受）" v-decorator="['isBarterEnquiry', {rules: [{required: true, message: '请输入是否接受易货询报价（1，普通询报价，2只收易货的，3全部接受，4都不接受）！'}]}]" />
        </a-form-item>
        <a-form-item
          label="易货询价的提示信息"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入易货询价的提示信息" v-decorator="['quoteTips', {rules: [{required: true, message: '请输入易货询价的提示信息！'}]}]" />
        </a-form-item>
        <a-form-item
          label="首单弹窗提示，1首单弹窗提示，2,100单，3,500单，4,1000单"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入首单弹窗提示，1首单弹窗提示，2,100单，3,500单，4,1000单" v-decorator="['popUpStatus', {rules: [{required: true, message: '请输入首单弹窗提示，1首单弹窗提示，2,100单，3,500单，4,1000单！'}]}]" />
        </a-form-item>
        <a-form-item
          label="销售所属大区集合"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入销售所属大区集合" v-decorator="['saleRegionIds', {rules: [{required: true, message: '请输入销售所属大区集合！'}]}]" />
        </a-form-item>
        <a-form-item
          label="银行开户许可证"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入银行开户许可证" v-decorator="['openingAccountUrl', {rules: [{required: true, message: '请输入银行开户许可证！'}]}]" />
        </a-form-item>
        <a-form-item
          label="增值税专用发票样版"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入增值税专用发票样版" v-decorator="['invoiceTemplateUrl', {rules: [{required: true, message: '请输入增值税专用发票样版！'}]}]" />
        </a-form-item>
        <a-form-item
          label="商标注册证或商标注册申请受理通知书"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入商标注册证或商标注册申请受理通知书" v-decorator="['trademarkRegisterUrl', {rules: [{required: true, message: '请输入商标注册证或商标注册申请受理通知书！'}]}]" />
        </a-form-item>
        <a-form-item
          label="企业生产许可证"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入企业生产许可证" v-decorator="['productionLicenceUrl', {rules: [{required: true, message: '请输入企业生产许可证！'}]}]" />
        </a-form-item>
        <a-form-item
          label="企业生产标准(多张)"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入企业生产标准(多张)" v-decorator="['productionStandardUrl', {rules: [{required: true, message: '请输入企业生产标准(多张)！'}]}]" />
        </a-form-item>
        <a-form-item
          label="产品质检报告(多张)"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入产品质检报告(多张)" v-decorator="['qualityReportUrl', {rules: [{required: true, message: '请输入产品质检报告(多张)！'}]}]" />
        </a-form-item>
        <a-form-item
          label="库存照片(多张)"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入库存照片(多张)" v-decorator="['inventoryPhotoUrl', {rules: [{required: true, message: '请输入库存照片(多张)！'}]}]" />
        </a-form-item>
        <a-form-item
          label="门店照片(多张)"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入门店照片(多张)" v-decorator="['storePhotoUrl', {rules: [{required: true, message: '请输入门店照片(多张)！'}]}]" />
        </a-form-item>
        <a-form-item
          label="仓储合同复印件或仓储发票(多张)"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入仓储合同复印件或仓储发票(多张)" v-decorator="['warehousContractUrl', {rules: [{required: true, message: '请输入仓储合同复印件或仓储发票(多张)！'}]}]" />
        </a-form-item>
        <a-form-item
          label="供应商商品销售价是否显示：1.显示，2不显示"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入供应商商品销售价是否显示：1.显示，2不显示" v-decorator="['goodsStatus', {rules: [{required: true, message: '请输入供应商商品销售价是否显示：1.显示，2不显示！'}]}]" />
        </a-form-item>
        <a-form-item
          label="合同开始时间"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入合同开始时间" v-decorator="['contractStartTime', {rules: [{required: true, message: '请输入合同开始时间！'}]}]" />
        </a-form-item>
        <a-form-item
          label="合同结束时间"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入合同结束时间" v-decorator="['contractEndTime', {rules: [{required: true, message: '请输入合同结束时间！'}]}]" />
        </a-form-item>
        <a-form-item
          label="保证金"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入保证金" v-decorator="['bond', {rules: [{required: true, message: '请输入保证金！'}]}]" />
        </a-form-item>
        <a-form-item
          label="业务分类（售前供应商，售后供应商，非车供应商，C端供应商）"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入业务分类（售前供应商，售后供应商，非车供应商，C端供应商）" v-decorator="['transactionType', {rules: [{required: true, message: '请输入业务分类（售前供应商，售后供应商，非车供应商，C端供应商）！'}]}]" />
        </a-form-item>
        <a-form-item
          label="业务分类描述"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          has-feedback
        >
          <a-input placeholder="请输入业务分类描述" v-decorator="['transactionTypeDescription', {rules: [{required: true, message: '请输入业务分类描述！'}]}]" />
        </a-form-item>
      </a-form>
    </a-spin>
  </a-modal>
</template>

<script>
  import { wmsCompanyAdd } from '@/api/modular/main/wmscompany/wmsCompanyManage'
  export default {
    data () {
      return {
        labelCol: {
          xs: { span: 24 },
          sm: { span: 5 }
        },
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 15 }
        },
        createdateDateString: '',
        storeEndDateDateString: '',
        businessLicenseStartDateDateString: '',
        businessLicenseEndDateDateString: '',
        verifyTimeDateString: '',
        visible: false,
        confirmLoading: false,
        form: this.$form.createForm(this)
      }
    },
    methods: {
      // 初始化方法
      add (record) {
        this.visible = true
      },
      /**
       * 提交表单
       */
      handleSubmit () {
        const { form: { validateFields } } = this
        this.confirmLoading = true
        validateFields((errors, values) => {
          if (!errors) {
            for (const key in values) {
              if (typeof (values[key]) === 'object' && values[key] != null) {
                values[key] = JSON.stringify(values[key])
              }
            }
            values.createdate = this.createdateDateString || null
            values.storeEndDate = this.storeEndDateDateString || null
            values.businessLicenseStartDate = this.businessLicenseStartDateDateString || null
            values.businessLicenseEndDate = this.businessLicenseEndDateDateString || null
            values.verifyTime = this.verifyTimeDateString || null
            wmsCompanyAdd(values).then((res) => {
              if (res.success) {
                this.$message.success('新增成功')
                this.confirmLoading = false
                this.$emit('ok', values)
                this.handleCancel()
              } else {
                this.$message.error('新增失败')// + res.message
              }
            }).finally((res) => {
              this.confirmLoading = false
            })
          } else {
            this.confirmLoading = false
          }
        })
      },
      createdateOnChange(date, dateString) {
        this.createdateDateString = dateString
      },
      storeEndDateOnChange(date, dateString) {
        this.storeEndDateDateString = dateString
      },
      businessLicenseStartDateOnChange(date, dateString) {
        this.businessLicenseStartDateDateString = dateString
      },
      businessLicenseEndDateOnChange(date, dateString) {
        this.businessLicenseEndDateDateString = dateString
      },
      verifyTimeOnChange(date, dateString) {
        this.verifyTimeDateString = dateString
      },
      handleCancel () {
        this.createdateDateString =''
        this.form.getFieldDecorator('createdate', { initialValue: null })
        this.storeEndDateDateString =''
        this.form.getFieldDecorator('storeEndDate', { initialValue: null })
        this.businessLicenseStartDateDateString =''
        this.form.getFieldDecorator('businessLicenseStartDate', { initialValue: null })
        this.businessLicenseEndDateDateString =''
        this.form.getFieldDecorator('businessLicenseEndDate', { initialValue: null })
        this.verifyTimeDateString =''
        this.form.getFieldDecorator('verifyTime', { initialValue: null })
        this.form.resetFields()
        this.visible = false
      }
    }
  }
</script>
